
import shareService from './module/shareService.js'
import cases from './module/cases.js'
import style from './module/style.js'
import themap from './module/themap.js'
import testvue from './module/testvue.js'

const dynamicRouter = [
  {
    path: "/home", name: "home", component: () => import(/* webpackChunkName: "onemap" */ "@/views/home/index.vue"),
    meta: { title: "主页" },
  },
  // 测试菜单权限
  {
    path: '/sum-statistics', name: 'sumStatistics', component: () => import(/* webpackChunkName: "sumStatistics" */ "@/views/sum-statistics/index.vue"),
    meta: { title: '汇总统计' }
  },
  {
    path: '/exhibit', name: 'exhibit', component: () => import(/* webpackChunkName: "exhibit" */ "@/views/exhibition/index.vue"),
    meta: { title: '展示页面' },
    children: [
      {
        path: '/exhibition', name: 'exhibition', component: () => import(/* webpackChunkName: "exhibition" */ "@/views/exhibition/exhibition.vue"),
        meta: { title: '展示页面' }
      },
      {
        path: '/appbuild', name: 'appbuild', component: () => import(/* webpackChunkName: "appbuild" */ "@/views/exhibition/appBuild/index.vue"),
        meta: { title: '应用搭建' }
      },
    ]
  },
  ...shareService,
  ...cases,
  ...style,
  ...themap,
  ...testvue,
  {
    path: '/system-config', name: 'systemConfig', component: () => import(/* webpackChunkName: "sumStatistics" */ "@/views/system-config/index.vue"),
    meta: { title: '系统配置' }
  },
]

export default dynamicRouter;